#include "graphics/ootexture.h"

//------------------------------------------------------------------------
inline
ooImage::ooImage()
{
}

//------------------------------------------------------------------------
inline
ooImage::ooImage(const ooImage &img)
:m_name(img.m_name)
,m_tfU(img.m_tfU)
,m_tfV(img.m_tfV)
,m_brU(img.m_brU)
,m_brV(img.m_brV)
,m_width(img.m_width)
,m_height(img.m_height)
,m_texture(img.m_texture)
{

}

//------------------------------------------------------------------------
inline
ooImage::ooImage(const String& name,float tfU,float tfV,float brU,float brV,dbbsize width,dbbsize height,ooTexture* tex)
:m_name(name)
,m_tfU(tfU)
,m_tfV(tfV)
,m_brU(brU)
,m_brV(brV)
,m_width(width)
,m_height(height)
,m_texture(tex)
{

}

//------------------------------------------------------------------------
inline
ooImage::~ooImage()
{
}

//------------------------------------------------------------------------
inline bool
ooImage::operator ==(const ooImage& img) const
{
	return m_name==img.m_name;
}

//------------------------------------------------------------------------
inline void
ooImage::operator =(const ooImage& img)
{
	m_name		= img.m_name;
	m_tfU		= img.m_tfU;
	m_tfV		= img.m_tfV;
	m_brU		= img.m_brU;
	m_brV		= img.m_brV;
	m_width		= img.m_width;
	m_height	= img.m_height;
	m_texture	= img.m_texture;
}

//------------------------------------------------------------------------
inline const String&
ooImage::getName() const
{
	return m_name;
}

//------------------------------------------------------------------------
inline Ptr<ooTexture>
ooImage::getTexture() const
{
	return m_texture;
}